package main

import (
	"fmt"
	"goseckill/rabbitmq/learn-used/rabbitmq"
	"strconv"
)

func main() {
	// 生产多个消费者
	forever := make(chan bool)
	for i := 0; i < 2; i++ {
		go func(i int) {
			r := rabbitmq.NewRabbitMQSimple("Simple")
			fmt.Printf("消费者 %s ",strconv.Itoa(i))
			r.ConsumeSimple()
		}(i)
	}
	<- forever
}